#ifndef MESSAGESHOWAREA_H
#define MESSAGESHOWAREA_H
#include <QWidget>
#include<QScrollArea>
#include"modle/data.h"
using module::Message;
class MessageShowArea : public QScrollArea
{
    Q_OBJECT
public:
    explicit MessageShowArea(QWidget *parent = nullptr);
    void addMessageItem(bool isleft,const Message &messageinfor);
    void clear();
private:
    QWidget *container;
};

#endif // MESSAGESHOWAREA_H
